package main

import (
	"os"
	"fmt"
	"io"
	"bufio"
)

func main(){
	filePath := "../1.txt"
	file,err := os.Open(filePath)
	defer file.Close()
	if err != nil {
		fmt.Println(err)
	}
	reader := bufio.NewReader(file)
	for {
		line,err1 := reader.ReadString('\n')
		fmt.Print(line)
		if err1 == io.EOF {
			break
		}
	}
}
